FROM centos:7

MAINTAINER anis

ADD jdk-8u91-linux-x64.tar.gz /usr/local

ENV JAVA_HOME /usr/local/jdk1.8.0_91

ADD apache-tomcat-9.0.80.tar.gz /usr/local

RUN mv /usr/local/apache-tomcat-9.0.80 /usr/local/tomcat90

ADD phone_war.war /usr/local/tomcat90/webapps/

ENV CATALINA_HOME /usr/local/tomcat90

EXPOSE 8080


ENTRYPOINT /usr/local/tomcat90/bin/catalina.sh run
